package com.zretc.support.service;

import com.zretc.support.entity.Log;
import com.zretc.support.entity.User;
import com.zretc.support.tool.AjaxResponse;
import com.zretc.support.tool.PageData;
import org.springframework.data.domain.Page;

import java.util.Date;

public interface LogService {

    /**
     * 添加日志
     * @param log
     * @return
     */
    AjaxResponse addLog(Log log);

    /**
     * 分页+模糊
     * @param userName
     * @param page
     * @param limit
     * @return
     */
    PageData<Log> findLogByLike(String userName, int page, int limit);

    /**
     * 分页+模糊
     * @param userName
     * @param startDate
     * @param endDate
     * @param page
     * @param limit
     * @return
     */
    PageData<Log> findLogByDate(String userName, String startDate, String endDate, int page, int limit);
}
